package com.wu.apiorderaddfeign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient  //声明为服务消费者 @EnableFeignClients
@EnableFeignClients                            // 声明启⽤feign客户端
@EnableHystrix              //熔断器
public class ApiOrderAddFeignApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiOrderAddFeignApplication.class, args);
    }

}
